package com.examples.gateway.service.impl;

import com.examples.core.mybatis.service.AbstractService;
import com.examples.core.req.ExamHeader;
import com.examples.gateway.entity.SystemOperateLog;
import com.examples.gateway.mapper.SystemOperateLogMapper;
import com.examples.gateway.service.OperateLogService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @ClassName: OperateLogServiceImpl
 * @Description: TODO
 * @Author: DAIYALU
 * @Date: 2024/6/20
 * @Version: 1.0
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class OperateLogServiceImpl extends AbstractService<SystemOperateLogMapper, SystemOperateLog> implements OperateLogService {

    @Override
    public void saveLog(ExamHeader header, SystemOperateLog log) {
        this.initBaseInfo(log, header);
        this.save(log);
    }
}
